package com.ruoyi.system.domain.mongodb;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;

import java.util.List;
import java.util.Objects;

public class Users {
    @Id
    private String id;
    private String meta;
    private String remark;
    private Integer taskstatus;
    private Integer noticenum;
    private Integer worksnum;
    private Integer status;
    private Integer role;
    private Integer classNum;
    private Integer stuNum;
    private String username;
    private String password;
    private String nickname;//昵称
    private String realname;
    private String headimg;
    private String email;
    private String phoneNum;
    private String qq;
    private String wx;
    private String motto;
    private List classlist;
    private List tchlist;
    private List tasklist;
    private ObjectId school;//学生所在学校
    private String openid;
    private Integer isAdmin; //是否为管理员
    private String classname; //班级名称
    private String schoolName;//学校名称
    private String codeNum;//验证码
    private String sfz; //身份证

    public Users() {
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public String getSfz() {
        return sfz;
    }

    public void setSfz(String sfz) {
        this.sfz = sfz;
    }

    public String getCodeNum() {
        return codeNum;
    }

    public void setCodeNum(String codeNum) {
        this.codeNum = codeNum;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMeta() {
        return meta;
    }

    public void setMeta(String meta) {
        this.meta = meta;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getTaskstatus() {
        return taskstatus;
    }

    public void setTaskstatus(Integer taskstatus) {
        this.taskstatus = taskstatus;
    }

    public Integer getNoticenum() {
        return noticenum;
    }

    public void setNoticenum(Integer noticenum) {
        this.noticenum = noticenum;
    }

    public Integer getWorksnum() {
        return worksnum;
    }

    public void setWorksnum(Integer worksnum) {
        this.worksnum = worksnum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getClassNum() {
        return classNum;
    }

    public void setClassNum(Integer classNum) {
        this.classNum = classNum;
    }

    public Integer getStuNum() {
        return stuNum;
    }

    public void setStuNum(Integer stuNum) {
        this.stuNum = stuNum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    public List getClasslist() {
        return classlist;
    }

    public void setClasslist(List classlist) {
        this.classlist = classlist;
    }

    public List getTchlist() {
        return tchlist;
    }

    public void setTchlist(List tchlist) {
        this.tchlist = tchlist;
    }

    public List getTasklist() {
        return tasklist;
    }

    public void setTasklist(List tasklist) {
        this.tasklist = tasklist;
    }

    public ObjectId getSchool() {
        return school;
    }

    public void setSchool(ObjectId school) {
        this.school = school;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }


    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    @Override
    public String toString() {
        return "Users{" +
                "id='" + id + '\'' +
                ", meta='" + meta + '\'' +
                ", remark='" + remark + '\'' +
                ", taskstatus=" + taskstatus +
                ", noticenum=" + noticenum +
                ", worksnum=" + worksnum +
                ", status=" + status +
                ", role=" + role +
                ", classNum=" + classNum +
                ", stuNum=" + stuNum +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", realname='" + realname + '\'' +
                ", headimg='" + headimg + '\'' +
                ", email='" + email + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", qq='" + qq + '\'' +
                ", wx='" + wx + '\'' +
                ", motto='" + motto + '\'' +
                ", classlist=" + classlist +
                ", tchlist=" + tchlist +
                ", tasklist=" + tasklist +
                ", school='" + school + '\'' +
                ", openid='" + openid + '\'' +
                ", classname='" + classname + '\'' +
                ", schoolName='" + schoolName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Users users = (Users) o;
        return Objects.equals(id, users.id) &&
                Objects.equals(meta, users.meta) &&
                Objects.equals(remark, users.remark) &&
                Objects.equals(taskstatus, users.taskstatus) &&
                Objects.equals(noticenum, users.noticenum) &&
                Objects.equals(worksnum, users.worksnum) &&
                Objects.equals(status, users.status) &&
                Objects.equals(role, users.role) &&
                Objects.equals(classNum, users.classNum) &&
                Objects.equals(stuNum, users.stuNum) &&
                Objects.equals(username, users.username) &&
                Objects.equals(password, users.password) &&
                Objects.equals(nickname, users.nickname) &&
                Objects.equals(realname, users.realname) &&
                Objects.equals(headimg, users.headimg) &&
                Objects.equals(email, users.email) &&
                Objects.equals(phoneNum, users.phoneNum) &&
                Objects.equals(qq, users.qq) &&
                Objects.equals(wx, users.wx) &&
                Objects.equals(motto, users.motto) &&
                Objects.equals(classlist, users.classlist) &&
                Objects.equals(tchlist, users.tchlist) &&
                Objects.equals(tasklist, users.tasklist) &&
                Objects.equals(school, users.school) &&
                Objects.equals(classname, users.classname) &&
                Objects.equals(schoolName, users.schoolName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, meta, remark, taskstatus, noticenum, worksnum, status, role, classNum, stuNum, username, password, nickname, realname, headimg, email, phoneNum, qq, wx, motto, classlist, tchlist, tasklist, school, classname, schoolName);
    }
}
